<template>
  <div class="songHeader">
    <div class="header-wrap">
      <img :src="songData.coverImgUrl" alt="" class="bg">
      <!-- 左边 -->
      <div class="song-img">
        <img :src="songData.coverImgUrl" alt="">
      </div>
      <!-- 右边 -->
      <div class="song-desc">
        <div class="song"><span><i class="iconfont icon-huangguan"></i>精品歌单</span></div>
        <div class="desc">{{ songData.name }}</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'SongHeader',
  props: {
    songData: {
      type: Object,
      default() {
        return {}
      }
    }
  }
}
</script>

<style lang="less" scoped>
.songHeader {
  padding: 15px 0;
  .header-wrap {
    display: flex;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    .bg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      filter: blur(50px);
      z-index: -1;
    }
    .song-img {
      padding: 25px;
      img {
        height: 100%;
      }
    }
    .song-desc {
      flex: 1;
      font-size: 14px;
      .song {
        color: #ffc063;
        padding: 5px;
        margin: 25px 0;
        span {
          border-radius: 10px;
          padding: 8px;
          border: 2px solid #ffc063;
          i {
            margin-right: 5px;
          }
        }
      }
      .desc {
        color: #fff;
        font-size: 18px;
      }
    }
  }
}
</style>